package com.dyz.view;

import java.awt.FileDialog;

import javax.swing.JFrame;

public class FileExplorer {
	
	private String directory;
	private String file;

	public void getSaveExplorer(JFrame jFrame) {

		FileDialog fd = new FileDialog(jFrame, "Wybierz", FileDialog.SAVE);
		fd.setVisible(true);
		this.directory = fd.getDirectory();
		this.file = fd.getFile();
	}
	
	public void getOpenExplorer(JFrame jFrame) {
		
		FileDialog fd = new FileDialog(jFrame, "Wybierz", FileDialog.LOAD);
		fd.setVisible(true);
		this.directory = fd.getDirectory();
		this.file = fd.getFile();
	}

	public String getDirectory() {
		return directory;
	}

	public String getFile() {
		return file;
	}

	

}
